package org.jeecg.modules.school.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.config.mybatis.TenantContext;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: ora_school
 * @author: baochangrong
 * @Date:   2022-02-21
 * @Version: V1.0
 */
@Data
@TableName("ora_school")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ora_school对象", description="ora_school")
public class OraSchool implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@Excel(name = "主键ID", width = 15)
    @ApiModelProperty(value = "主键ID")
    private String id;
	/**学校编码*/
	@Excel(name = "学校编码", width = 15)
    @ApiModelProperty(value = "学校编码")
    private String schoolCode;
	/**学校名称*/
	@Excel(name = "学校名称", width = 15)
    @ApiModelProperty(value = "学校名称")
    private String schoolName;
	/**学校简称*/
	@Excel(name = "学校简称", width = 15)
    @ApiModelProperty(value = "学校简称")
    private String schoolNickname;
	/**学校位置*/
	@Excel(name = "学校位置", width = 15)
    @ApiModelProperty(value = "学校位置")
    private String schoolAddress;
	/**坐标经纬度*/
	@Excel(name = "坐标经纬度", width = 15)
    @ApiModelProperty(value = "坐标经纬度")
    private String schoolLonLat;
	/**学校类型（1：公立学校 2：私立学校）*/
	@Excel(name = "学校类型（1：公立学校 2：私立学校）", width = 15)
    @ApiModelProperty(value = "学校类型（1：公立学校 2：私立学校）")
    @Dict(dicCode = "school_ttype")
    private Integer schoolTtype;
	/**学校状态（1：小学 2：中学）*/
	@Excel(name = "学校状态（1：小学 2：中学）", width = 15)
    @ApiModelProperty(value = "学校状态（1：小学 2：中学）")
    @Dict(dicCode = "school_status")
    private Integer schoolStatus;
	/**学校简介*/
	@Excel(name = "学校简介", width = 15)
    @ApiModelProperty(value = "学校简介")
    private String schoolIntroduce;
	/**学校链接*/
	@Excel(name = "学校链接", width = 15)
    @ApiModelProperty(value = "学校链接")
    private String schoolLink;
	/**是否启用（1:：启用 0：未启用）*/
	@Excel(name = "是否启用（1:：启用 0：未启用）", width = 15)
    @ApiModelProperty(value = "是否启用（1:：启用 0：未启用）")
    @Dict(dicCode = "iz_open")
    private Integer schoolIzOpen = 1;
	/**学校备注*/
	@Excel(name = "学校备注", width = 15)
    @ApiModelProperty(value = "学校备注")
    private String schoolRemark;
	/**是否删除（1：删除 0：未删除）*/
	@Excel(name = "是否删除（1：删除 0：未删除）", width = 15)
    @ApiModelProperty(value = "是否删除（1：删除 0：未删除）")
    @Dict(dicCode = "iz_delete")
    private Integer schoolIzDelete = 0;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**租户编码*/
	@Excel(name = "租户编码", width = 15)
    @ApiModelProperty(value = "租户编码")
    private String tenantId = TenantContext.getTenant();

    /**租户编码*/
    @Excel(name = "背景图片", width = 15)
    @ApiModelProperty(value = "背景图片")
    private String schoolImg;

    /**租户编码*/
    @Excel(name = "年级数量", width = 15)
    @ApiModelProperty(value = "年级数量")
    private String schoolGradeNumber;

    /**租户编码*/
    @Excel(name = "班级数量", width = 15)
    @ApiModelProperty(value = "班级数量")
    private String schoolClassRoomNumber;

    /**租户编码*/
    @Excel(name = "学生数量", width = 15)
    @ApiModelProperty(value = "学生数量")
    private String schoolStudentNumber;

    /**租户编码*/
    @Excel(name = "老师数量", width = 15)
    @ApiModelProperty(value = "老师数量")
    private String schoolTeacherNumber;
}
